gtk/inspector/css-node-tree.c: Fix Build
authorChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 10 Apr 2015 07:48:59 +0000 (15:48 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Fri, 10 Apr 2015 09:18:07 +0000 (17:18 +0800)
strcasecmp() is unfortunately not universally available, along with
strings.h.  Fix the build by replacing strcasecmp() with
g_ascii_strcasecmp(), and remove the strings.h include.

https://bugzilla.gnome.org/show_bug.cgi?id=747604

gtk/inspector/css-node-tree.c

index ca48f2b729691cb813e914a739089a1bbba6fdcb..03a9a99fb1cc2785bebb5022111f243386dfa296 100644 (file)
@@ -25,8 +25,6 @@
 
 #include "css-node-tree.h"
 
-#include <strings.h>
-
 #include "gtktreemodelcssnode.h"
 #include <gtk/gtktreeview.h>
 #include "gtk/gtkwidgetprivate.h"
@@ -76,7 +74,7 @@ sort_strv (gconstpointer a,
   char **ap = (char **) a;
   char **bp = (char **) b;
 
-  return strcasecmp (*ap, *bp);
+  return g_ascii_strcasecmp (*ap, *bp);
 }
 
 static void